package com.csp.main.mapper;

import com.csp.main.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 消息 Mapper 接口
 * </p>
 *
 * @author csp
 * @since 2022-06-18
 */
@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    //@Select("SELECT * FROM user where name = #{name}")
    @Select("SELECT * FROM message where ")
    List<Message> selectByName(@Param("userId") String userId,@Param("friendId") String friendId,@Param("page") String page,@Param("friendId") String limit);
}
